﻿<Window x:Class="Resn.WhuPub.WPFClientUI.CreateContactWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Style="{StaticResource WindowStyle}" WindowStartupLocation="CenterScreen" 
        Loaded="Window_Loaded" MouseDown="Window_OnMouseDown">
        <Grid Name="LayoutRoot">
                <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <Grid Background="{StaticResource TitleGridColor}">
                        <TextBlock Text="新建联系人" Style="{StaticResource BigTextBlockStyle}" />
                </Grid>
                

                <Grid Grid.Row="1" Background="{StaticResource ContentGridColor}">
                        <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Grid.Row="0" Text="姓名" HorizontalAlignment="Right" />
                        <TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Name}"/>

                        <TextBlock Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" Text="职称"/>
                        <TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Title}"/>

                        <TextBlock Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right"  Text="职务"/>
                        <TextBox Grid.Column="1" Grid.Row="2"  Text="{Binding Duty}"/>
                        
                        <TextBlock Grid.Column="0" Grid.Row="3" Text="电话"  HorizontalAlignment="Right" />
                        <TextBox Grid.Column="1" Grid.Row="3"  Text="{Binding Telephone}"  />

                        <TextBlock Grid.Column="0" Grid.Row="4" HorizontalAlignment="Right" Text="QQ"/>
                        <TextBox Grid.Column="1" Grid.Row="4" Text="{Binding QQ}" />
                        
                        <TextBlock Grid.Column="0" Grid.Row="5" HorizontalAlignment="Right" Text="邮箱"/>
                        <TextBox Grid.Column="1" Grid.Row="5" Text="{Binding Email}"/>
                        
                        <TextBlock Grid.Column="0" Grid.Row="6" HorizontalAlignment="Right" Text="社会兼职"/>
                        <TextBox Grid.Column="1" Grid.Row="6" Text="{Binding SoicalDuty}" />
                        
                        <TextBlock Grid.Column="0" Grid.Row="7" HorizontalAlignment="Right" Text="本社作者"/>
                        <CheckBox Grid.Column="1" Grid.Row="7" HorizontalAlignment="Left"
                                 Style="{StaticResource CheckBoxStyle}" IsChecked="{Binding IsOwnAuthor}" />
                        
                        <TextBlock Grid.Column="0" Grid.Row="8" HorizontalAlignment="Right" Text="备注" />
                        <TextBox Grid.Column="1" Grid.Row="8" MinWidth="320" Height="120" Text="{Binding Memo}" VerticalScrollBarVisibility="Auto" />
                        
                </Grid>
                <Grid Grid.Row="2" Background="{StaticResource ContentGridColor}">
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Button Grid.Column="1" Style="{DynamicResource WindowCancelButtonStyle}"/>
                        <Button Grid.Column="2" Style="{DynamicResource WindowAcceptButtonStyle}" Click="AcceptButton_Click" />
                </Grid>
        </Grid>
</Window>